package com.demo.cms.util;

import java.util.Collections;
import java.util.List;

import com.demo.core.model.support.AdjacencyListModel;
import com.demo.security.access.audit.FunctionModel;
import com.demo.security.util.SecurityUtil;

/**
 * CMS相关功能
 * @author ryuu.kk
 *
 */
public abstract class CMSUtils {

	public static void main(String[] args) {
		List<FunctionModel> functionModelList = SecurityUtil.scanPackage("com.demo.cms.action.manage");
		// 排序
		Collections.sort(functionModelList);
		
		for (FunctionModel fModel : functionModelList) {
			System.out.println("ID : " + fModel.getId() + " - PID : " + fModel.getPid() + "\t- Code : " + fModel.getCode() + "\t\t\t- Class : " + fModel.getClassName() + "\t- Method : " + fModel.getMethodName());
		}
		//model.setMethodName(methodName)
	}
}
